package chixing.day18.homework.work3_2;

public class PrinterThread extends Thread{
    private Printer printer;

    public PrinterThread(Printer printer) {
        this.printer = printer;
    }

    @Override
    public void run() {
        printer.printDocument(Thread.currentThread().getName());
    }
}
